/**
	Look for comments next to the different values to know what to change. 
	The ONLY required change is the Home: url
	These configuration settings are based on the ExtJS 3.x framework format and GeoExt.
*/
Config = {
 			General: {
					FeatureHeight: 150
 				,	Home: {
							// Please change this to your location of where you installed the software + /resouces"
							// so if you installed in your htdocs/gpaamp/ then the url will be "http://www.mywebsite.com/gpaamp/resources/"
 							url: "http://localhost/geo/resources/"
						}
				,	LogoText:{
								xtype: 'label'
								// Change the text: "GBIF GeoSpatial Portal" to change the title of the header.
								// You are welcome to change the whole html tag to something else if so desired.
							,	html: '<div style="font-size:15px; font-weight:bold; height:20px;color:#1F527C;padding-left:10px;">GBIF GeoSpatial Portal</div>'
						}				
 				
					// This is the default wms map layer.
				,	baseMapSettings:{
							name: "World Map"
						,	url: "http://labs.metacarta.com/wms-c/Basic.py?"
						,	layers: "basic"
						,	version: '1.0.0'
					}
					// These are formats that may or may not be supported with the layers. Currently has been tested with Image
				,	downloadFormats:{
							Image: true
						,	CSV: false
						,	GML2: false
						,	GML2GZIP: false	
						,	GeoJSON: false
						,	Shapefile: true
					}
					// This is the menu found in the toolbar.  If should not need to be changed
					// but if you need to not have these functions you can remove them.
				,	ContextMenu: {
							exportMenu: {
									Image:{
											text: "Composite Image"
										,	scope: this
										,	itemId:'exportimage'
										,	listeners:{
													click:{
															fn:function(menu){
																this.parentMenu.scope.exportImage(menu.text);
															}
													}
											}
										,	iconCls:'icon-compositeImage'
									}
								,	CSV:{
											text:"CSV"	
										,	scope: this
										,	itemId:'exportimagecsv'
										,	listeners:{
													click:{
															fn:function(menu){
																this.parentMenu.scope.exportImage(menu.text);
															}
													}
											}
										,	iconCls:'icon-compositeImage'
									}
								,	GML2:{
											text:"GML2"	
										,	scope: this
										,	itemId:'exportimageGML2'
										,	listeners:{
													click:{
															fn:function(menu){
																this.parentMenu.scope.exportImage(menu.text);
															}
													}
											}
										,	iconCls:'icon-compositeImage'
									}
								,	GML2GZIP:{
											text:"GML2-GZIP"	
										,	scope: this
										,	itemId:'exportimageGML2-GZIP'
										,	listeners:{
													click:{
															fn:function(menu){
																this.parentMenu.scope.exportImage(menu.text);
															}
													}
											}
										,	iconCls:'icon-compositeImage'
									}
								,	GeoJSON:{
											text:"GeoJSON"	
										,	scope: this
										,	itemId:'exportimageGeoJson'
										,	listeners:{
													click:{
															fn:function(menu){
																this.parentMenu.scope.exportImage(menu.text);
															}
													}
											}
										,	iconCls:'icon-compositeImage'
									}
								,	Shapefile:{
											text:"Shapefile"	
										,	scope: this
										,	itemId:'exportimageGeoJson'
										,	listeners:{
													click:{
															fn:function(menu){
																this.parentMenu.scope.exportImage(menu.text);
															}
													}
												}
										,	iconCls:'icon-compositeImage'
									}
								}	 
							}
						// These are additional menu items that can be changed if desired					
					,	ToolbarMenu: {
								HelpMenu: [{
												text: "User Guide"
											,	iconCls:'icon-userguide'		
											,	listeners: {
													click: function(){
														window.open('http://code.google.com/p/gbif-geospatial/wiki/Overview', '_blank');
													}
												}
										}, {
												text: "Release Notes"
											,	iconCls:'icon-releasednotes'
											,	listeners: {
													click: function(){
														window.open('http://code.google.com/p/gbif-geospatial/wiki/ReleaseNotes', '_blank');
													}
												}
										}, {
												text: "License"
											,	iconCls:'icon-license'	
											,	listeners: {
													click: function(){
														window.open('http://www.apache.org/licenses/LICENSE-2.0', '_blank');
													}
												}
										}, {
												text: "About GBIF GeoSpatial"
											,	iconCls:'icon-gbif'	
											,	listeners: {
													click: function(){
														new Ext.Window({
																title: "About GBIF GeoSpatial"
															, 	height: 190
															,	width: 270 
															,	resizable: false
															,	modal: true
															,	autoLoad: 'resources/docs/en/about/index.html'
														}).show();
													}
												}
										}]
							}		
					}
		,	GBIF:{			
			    GeoSpatial:{
							LayersTree:{
										cls:'x-tree-noicon'
									,	width:300
									,	useArrows:true
									,	enableDD: true
									,	rootVisible: false
								}
							// These are configurations on how the Available Layers Tree looks.								
						,	AvailableLayersTree:{
									cls: 'x-tree-noicon'
								,	animate: false	
								,	border: false
								,	useArrows: true
								,	availableLayers: 'availablelayers.json' // This can be changed if you would like to use a different json file.
							}
							// Default settings of the map component
						,	MapComponent: {
									layout: 'fit'
								,	bodyStyle: "background-color:#01000e"
								,	border: false
								,	zoom: 4
							}								
						,	GeoSpatialPortal:{
							}
						,	Container:{
								layout: 'border'
							}
							// These true/false flags can be changed to enable/disable features of the portal
						,	TabManager:{
									tabConfig:{
											consoleShow: true
										,	georssShow: true
										,	legendShow: true
										,	featuredatagrid: true
									}
							}
							// More controls that can be enabled disabled						
						,	CenterPanel:{
									showDataGridTabs:true
								,	controlConfig:{
											clickControl: true
										,	pointControl: false
										,	lineControl: false
										,	polygonControl: false
										,	selectControl: false
										,	deleteControl: false
										,	modifyControl: false
									}
							}		
					}
		} 	
}

